#update?Y
from machine import Pin, PWM,UART
import time

ledB=Pin(12,Pin.OUT,value=0)
ledR=Pin(00,Pin.OUT,value=0)
ledG=Pin(01,Pin.OUT,value=0)


ledB = PWM(Pin(12))
ledR = PWM(Pin(00))
ledG = PWM(Pin(01))
ledB.freq(1000)
ledR.freq(1000)
ledG.freq(1000)


while True:
    for i in range(0, 1024):
        ledB.duty(i)
        time.sleep_ms(1)
        
    for i in range(1023, -1, -1):
        ledB.duty(i)
        time.sleep_ms(1)
        
    for i in range(0, 1024):
        ledR.duty(i)
        time.sleep_ms(1)
        
    for i in range(1023, -1, -1):
        ledR.duty(i)
        time.sleep_ms(1)
        
    for i in range(0, 1024):
        ledG.duty(i)
        time.sleep_ms(1)
        
    for i in range(1023, -1, -1):
        ledG.duty(i)
        time.sleep_ms(1)